package com.zbkj.crmeb.store.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.PageParamRequest;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.store.dao.ChannelUserUploadDao;
import com.zbkj.crmeb.store.model.ChannelUserUpload;
import com.zbkj.crmeb.store.service.ChannelUserUploadService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChannelUserUploadServiceImpl extends ServiceImpl<ChannelUserUploadDao, ChannelUserUpload> implements ChannelUserUploadService {

    /**
     * 功能描述: 获取上传文件信息列表
     * @Param: [request, merId]
     * @Return: java.util.List<com.zbkj.crmeb.store.model.ChannelUserUpload>
     * @Author: wangzh
     * @Date: 2022/12/15 13:33
     */
    @Override
    public List<ChannelUserUpload> getList(PageParamRequest request, Integer merId) {
        PageHelper.startPage(request.getPage(), request.getLimit());
        return this.list(Wrappers.<ChannelUserUpload>lambdaQuery()
                .eq(ChannelUserUpload::getMerId, merId));
    }
}
